package goodssrvlogic

import (
	"context"

	"gozero-microservices/goods-service/rpc/internal/svc"
	"gozero-microservices/goods-service/rpc/types/goods"

	"github.com/zeromicro/go-zero/core/logx"
)

type GoodsTotalLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewGoodsTotalLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GoodsTotalLogic {
	return &GoodsTotalLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *GoodsTotalLogic) GoodsTotal(in *goods.QueryGoodsRequest) (*goods.TotalResult, error) {
	// todo: add your logic here and delete this line

	return &goods.TotalResult{}, nil
}
